package Test;

class StaticBlockEx {
	{// when an instance is created
		System.out.println("Init block");
	}
	static {// when the class is first loaded
		System.out.println("static block");
	}

	public static void main(String[] args) {
		/*
		 * output: 
		 * static block
		 * Init block
		 * Init bloc
		 */
		StaticBlockEx d = new StaticBlockEx();
		StaticBlockEx d1 = new StaticBlockEx();
	}
}